import { network } from '@/utils';
import { TableListParams } from './data';

import { basic } from '../../../../../config/Apis';

export async function queryCampusDepartment(params: TableListParams) {
  return network.get(basic.garden_depart_list, {
    params,
  });
}

export async function querySaveDepartmentList(params: TableListParams) {
  return network.get(basic.org_allOrgListAndParent, {
    params,
  });
}

export async function performSaveDepartment(params: TableListParams) {
  return network.post(basic.garden_depart, {
    data: params,
  });
}

export async function performDeleteDepartment(params: TableListParams) {
  return network.deleter(basic.garden_depart, {
    params,
  });
}
